package com.bb.blog.security.service;

import com.bb.blog.security.dao.ResourcesMapper;
import com.bb.blog.security.model.Resources;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.io.Serializable;
import java.util.List;
@Service
@RequiredArgsConstructor
public class ResourcesServiceImpl implements ResourcesService, Serializable {
    private final ResourcesMapper resourcesMapper;

    @Override
    public List<Resources> loadResourcesByUserId(Integer userId) {
        return resourcesMapper.selectResourcesByUserId(userId);
    }
}
